 <form action="<?= $admin_base_url; ?>auth/changepwd" method="post" id="user_form">
 
<table  id="tblform">
<tbody>
	<tr>
		<td>Name</td>
		<td><input class="input" type="text" name="name" value="<?php echo $user['name'];?>" /></td>
	</tr>
	<tr>
		<td>Password</td>
		<td><input class="input" type="password" name="mypassword" value="" /></td>
	</tr>
	<tr>
		<td>Confirm Password</td>
		<td><input class="input" type="password" name="myconfpassword" value="" /></td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td>
			<div class="buttons">
			    <button type="submit" name="save" class="submit" value="save" >
			        <img src="<?php echo $admin_image_path?>icons/apply.png" alt=""/>
			          <?php if(!empty($id)) { ?>
 							Change Password
 							<input type="hidden" name="id" value="<?php echo $id;?>" />
 							<input type="hidden" name="rurl" value="<?php echo $rurl;?>" />
 					  <?php } ?>

 			    </button>
			   <a href="<?= $admin_base_url; ?>upload_form/home?rurl=<?php echo $rurl;?>" class="negative">
			        <img src="<?php echo $admin_image_path?>icons/cross.png" alt=""/>
			        Cancel
			   </a>
			</div>
		</td>
	</tr>
</tbody>
</table>
 </form>
 <script>
 $(document).ready(function() {
     $("#user_form").RSV({
       onCompleteHandler: frmSubmit,
       errorFieldClass: "errorDesc",
       displayType: "display-html",
       errorHTMLItemBullet: "&#8212; ",
             rules: [
                     "required,name,Please enter name.",
                     "required,mypassword,Please enter a password.",
                     "same_as,mypassword,myconfpassword,Please ensure the passwords you enter are the same."
             ]
     });
  // a custom onComplete handler to prevent form submits for the demo
     function frmSubmit()
     {
       return true;
     }

        
});
 </script>